<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Noodbabies Note Share</title>
<link rel="stylesheet" href="/js/bootstrap-3.3.2-dist/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/css/core.css" type="text/css" />
<script type="text/javascript" src="/js/jquery/jquery-2.1.3.js"></script>
<script type="text/javascript" src="/js/bootstrap-3.3.2-dist/js/bootstrap.js"></script>
<script type="text/javascript" src="/js/jquery.bootstrap.min.js"></script>
<script type="text/javascript" src="/js/plugins/jquery.form.js"></script>
<style type="text/css">
body{
	background-color:  #eee;
}
.cm-container{
	margin-top: 160px;
}
.login {
	width: 360px;
	height: 300px;
	margin: 0px auto;
}

.nologin {
	width: 360px;
	margin: 0px auto;
}
.text-nologin {
	margin: auto 30px ;
	color: #4682B4;
}

.btn-primary {
	color: #000;
	background-color: #FFF;
	border-color: #2e6da4;
}
</style>

<script type="text/javascript">
	$(function(){
		$(".btn-login").click(function () {
			$("#loginForm").ajaxSubmit({
				success:function (data) {
					if(data.success){
					    window.location.href="/main";
					}else{
					    $.messager.alert("提示",data.message);
					}
                }
			});
        })

	});	
</script>

</head>
<body>
    <div class="text-right text-nologin">If you dont want to login, please click here.</div>

	<a href="/main.do">
		<span class="pull-right text-nologin">>>> NO Login </span>
	</a>

	<div class="container cm-container">
		<h3 class="text-center">Login </h3>
		<hr />
		<div class="login">
			<form id="loginForm" action="/userLogin" method="post">
				<div class="form-group form-group-lg">
					<div class="input-group">
						<div class="input-group-addon">Username</div>
						<input class="form-control" name="username" value="admin"/>
					</div>
				</div>
				<div class="form-group form-group-lg">
					<div class="input-group">
						<div class="input-group-addon">Password</div>
						<input class="form-control" name="password" type="password" value="000000"/>
					</div>
				</div>
				<div class="form-group">
				<button type="button" class="btn btn-lg btn-primary btn-block btn-login">Confirm</button>
			</div>
			</form>
		</div>
	</div>
</body>
</html>